package com.xbh.management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xbh.management.entity.ManUserVO;
import com.xbh.management.model.ManUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: management-center
 * @description:
 * @author: 许宝华
 * @create: 2021-08-29 19:27
 */

@Mapper
public interface UserMapper extends BaseMapper<ManUser> {

    int updateUserByUsername(@Param("username") String username,@Param("imageURl") String imageURl);

    ManUserVO queryUserRelationAllRole(ManUser user);

    ManUserVO queryUserRelationAllRoleByUsername(ManUser user);

    ManUserVO queryUserRelationAllMenu(ManUser user);

    Page queryAllUserReturnPage(Page<ManUser> page,@Param("user") ManUser user);
}
